%h1 Subjects
= button_to 'Display Subjects with more than 2 credit hours', subjects_path, method: :greater_than

- @subjects.each do |subject|
	
	%p
	= subject.name
	= subject.credit_hours
 
	%p{style: "float: right;"}
		= link_to "Delete", subject, method: :delete, confirm: "Are you sure you want to delete this subject?"
		%hr{style: "clear: both;"}
 
%br


= link_to 'New Subject', new_subject_path
%p
= link_to 'Back', blog_posts_path